<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>    
    <title>修改（编辑）用户</title>    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<style type="text/css">
		.errorMessage{
			color:red;
			font-size: 13px;
		}
	</style>
  </head>
  
  <body style="text-align: center;margin: 0 auto; margin-top: 30px;">
  <h3>编辑用户</h3>
  <s:form action="editUser" namespace="/page/permanage" validate="true">
  	<s:hidden name="role.roleId" />
  	<s:fielderror></s:fielderror>
    <table>
    	<tr>
    		<td>
    			用户名称：
    		</td>
    		<td>
    			<s:textfield name="user.userName" value="%{user.userName}" ></s:textfield>
    		</td>
    	</tr>
    	<tr>
    		<td>
    			用户密码：
    		</td>
    		<td>    			
    			<s:textfield name="user.passWord" value="%{user.passWord}"></s:textfield>
    		</td>
    	</tr>
    	<tr>
    		<td>
    			所在部门：
    		</td>
    		<td>    			
    			<s:textfield name="user.depart" value="%{user.depart}"></s:textfield>
    		</td>
    	</tr>
    	<tr>
    		<td>
    			电话号码：
    		</td>
    		<td>    			
    			<s:textfield name="user.mobileTelNo" value="%{user.mobileTelNo}"></s:textfield>
    		</td>
    	</tr>
    	<tr>
    		<td>角色升职：</td>
    		<td>
	    		<s:checkboxlist list="#roles" name="user.roles" listKey="name" listValue="roleId"></s:checkboxlist>
    		</td>
    	</tr>
    	<tr>
    		<td><input type="submit" value="修改" /></td>
    		<td><input type="reset" value="重置" /></td>
    	</tr>
    </table>
  </s:form>
  </body>
</html>
